﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Common.Entitys.S7.S7Enums;

namespace Common.Entitys.S7
{
    /// <summary>
    /// PLC变量类
    /// </summary>
    public class Variable
    {
        public Variable(string varName, string start, DataTypes dataType)
        {
            this.VarName = varName;
            this.Start = start;
            this.DataTypes = dataType;
        }
        /// <summary>
        /// 标签名
        /// </summary>
        public string VarName { get; set; }

        /// <summary>
        /// 开始位置
        /// </summary>
        public string Start { get; set; }

        /// <summary>
        /// 数据类型
        /// </summary>
        public DataTypes DataTypes { get; set; }

        /// <summary>
        /// 数据值
        /// </summary>
        public object VarValue { get; set; }
    }
}
